import Vue from "vue";
import VueRouter from "vue-router";
import Math from "../views/my-math.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Math",
    component: Math,
  },
  {
    path: "/tag",
    name: "Tag",
    component: ()=>import('@/views/my-tag.vue'),
  },
  {
    path: "/table",
    name: "table",
    component: ()=>import('@/views/my-table.vue'),
  },
  {
    path: "/shopping",
    name: "list",
    component: ()=>import('@/views/my-shopping.vue'),
  },
  {
    path: "/cart",
    name: "cart",
    component: ()=>import('@/views/my-shopcart.vue'),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
